#!/usr/bin/python

from SleepyTracker import SleepyTracker
import sys

if len(sys.argv) != 2:
    print "Usage: extract <device path>"
    sys.exit(1) 

tracker = SleepyTracker(sys.argv[1])
data = tracker.data

print "Date: "+str(data.date)
print "Window: "+str(data.window)
print "To Bed: "+str(data.to_bed)
print "Alarm Time: "+str(data.alarm_time)
print "Awake data: "+str(data.awake_data)
print "Average awake time: "+str(data.awake_data_a)
print "Waking Time: "+str(data.wake_up_time)
